#pragma once

class GStringUtil
{
public:
	GStringUtil(void);
	virtual ~GStringUtil(void);

	static wchar_t * cstr2wstr( const char * src );
	static char * wstr2cstr( const wchar_t * src ); 

	static char * substr( char * dst, const char * src, int startIndex, int endIndex );
	static bool analyseFilePath( const char * fullPath, char * filePath, char * fileName, char * ext );
	static char ** split( const char * src, const char sep, int& segNum );

	static void toLowerCase( char * str );
	static void toUpperCase( char * str );
};

